package com.acme.task5;

public class TextModifier {
	public static void main(String[] args) {				
		if (args.length != 1) {
			System.out.println("wrong input");
			return;
		}
		String str = args[0];
		char [] out_str = new char [str.length()];		
		
		for (int i = 0, j = 0; i < str.length(); i++) {
			char charAtIndex = str.charAt(i);
			if (Character.isDigit(charAtIndex)) {				
			} else {
				switch (charAtIndex) {
				case '+':
				case '-': 
					out_str[j] = charAtIndex;
					out_str[j+1] = charAtIndex;
					j += 2;
					break;
				default:
					out_str[j] = charAtIndex;
					j++;
				}
			}
		}
		
		System.out.println(out_str);
	}
}
